package com.sunwayworld.basemodule.coredata.pjproduct.bean;

import com.sunwayworld.framework.data.annotation.Id;
import com.sunwayworld.framework.data.annotation.Table;
import com.sunwayworld.framework.data.annotation.Transient;
import com.sunwayworld.framework.support.domain.Insertable;
import com.sunwayworld.framework.support.domain.AbstractInsertable;
import java.time.LocalDateTime;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;
import com.alibaba.fastjson.annotation.JSONField;

/**
 * 参考值危急值表
 * 
 * @author zhoujq@sunwayworld.com
 * @date 2023-07-05
 */
@Table("T_LIMS_PURPOSE_METHOD_REFER")
public class LimsPurposeMethodReferBean extends AbstractInsertable<Long> implements Insertable<Long> {

    @Transient
    private static final long serialVersionUID = -82566196618711043L;

    @Id
    private Long id;// 主键
    private Long purposeMethodId;// 检测目的方法id
    private String referValue;// 参考值
    private String referHigh;// 高限
    private String referLow;// 低限
    private String dangerTip;// 提示
    private String referType;// 类型(定量、定性)
    private String datatype;// 是否危急
    private String createdById;// 制单人编码
    private String createdByName;// 制单人名称
    @JSONField(format = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdTime;// 制单时间
    private String createdByOrgId;// 制单人单位编码
    private String createdByOrgName;// 制单人单位名称
    private String formula;// 公式

    // 公式计算用 非数据库字段
    @Transient
    private List<LimsProductConditionBean> conditionBeanList;
    @Transient
    private int sorter;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPurposeMethodId() {
        return purposeMethodId;
    }

    public void setPurposeMethodId(Long purposeMethodId) {
        this.purposeMethodId = purposeMethodId;
    }

    public String getReferValue() {
        return referValue;
    }

    public void setReferValue(String referValue) {
        this.referValue = referValue;
    }

    public String getReferHigh() {
        return referHigh;
    }

    public void setReferHigh(String referHigh) {
        this.referHigh = referHigh;
    }

    public String getReferLow() {
        return referLow;
    }

    public void setReferLow(String referLow) {
        this.referLow = referLow;
    }

    public String getDangerTip() {
        return dangerTip;
    }

    public void setDangerTip(String dangerTip) {
        this.dangerTip = dangerTip;
    }

    public String getReferType() {
        return referType;
    }

    public void setReferType(String referType) {
        this.referType = referType;
    }

    public String getDatatype() {
        return datatype;
    }

    public void setDatatype(String datatype) {
        this.datatype = datatype;
    }

    public String getCreatedById() {
        return createdById;
    }

    public void setCreatedById(String createdById) {
        this.createdById = createdById;
    }

    public String getCreatedByName() {
        return createdByName;
    }

    public void setCreatedByName(String createdByName) {
        this.createdByName = createdByName;
    }

    public LocalDateTime getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(LocalDateTime createdTime) {
        this.createdTime = createdTime;
    }

    public String getCreatedByOrgId() {
        return createdByOrgId;
    }

    public void setCreatedByOrgId(String createdByOrgId) {
        this.createdByOrgId = createdByOrgId;
    }

    public String getCreatedByOrgName() {
        return createdByOrgName;
    }

    public void setCreatedByOrgName(String createdByOrgName) {
        this.createdByOrgName = createdByOrgName;
    }

    public List<LimsProductConditionBean> getConditionBeanList() {
        return conditionBeanList;
    }

    public void setConditionBeanList(List<LimsProductConditionBean> conditionBeanList) {
        this.conditionBeanList = conditionBeanList;
    }

    public int getSorter() {
        return sorter;
    }

    public void setSorter(int sorter) {
        this.sorter = sorter;
    }

    public String getFormula() {
        return formula;
    }

    public void setFormula(String formula) {
        this.formula = formula;
    }

}
